package com.hashbee.bbs.service.impl;

import com.hashbee.bbs.dao.CategoryMapper;
import com.hashbee.bbs.domain.Category;
import com.hashbee.bbs.service.CategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service("categoryService")
public class CategoryServiceImpl implements CategoryService {

    @Autowired
    private CategoryMapper categoryMapper;

    @Override
    public List<Category> queryList() {

        return categoryMapper.selectList();
    }
}
